package com.spring.shiro.main.java.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.spring.shiro.main.java.model.Resource;

public interface ResourceMapper {
	
	int insert(Resource resource);
	
	int updateResource(Resource resource);
	
	List<Resource> findResourceAllByTypeAndPid(@Param("resourceType") Integer resourceType, @Param("pid")  Long pid);
	
	List<Resource> findResourceAll();
	
	List<Resource> findResourceAllByTypeAndPidNull(Integer resourceMenu);
	
	Resource findResourceById(Long id);
	
	int deleteResourceById(Long id);
}
